﻿namespace BlamanticUI.Components;
/// <summary>
/// Represents a column in one row of grid.
/// </summary>
[CssClass("column")]
public class GridColumn : BlazorChildComponentBase<Grid>, IHasColor, IHasSpan, IHasFloated, IHasVerticalAlignment, IHasHorizontalAlignment,IHasChildContent
{
    /// <summary>
    /// Initializes a new instance of the <see cref="GridColumn"/> class.
    /// </summary>
    public GridColumn()
    {
    }
    /// <summary>
    /// A segment of UI content to render.
    /// </summary>
    [Parameter] public RenderFragment? ChildContent { get; set; }
    /// <summary>
    /// Gets or sets the span of column.
    /// </summary>
    [Parameter] [CssClass(" wide", Suffix = true)] public SpanSize? Span { get; set; }
    /// <summary>
    /// Gets or sets the background color.
    /// </summary>
    [Parameter] public Color? Color { get; set; }
    /// <summary>
    /// Gets or sets the float position.
    /// </summary>
    [Parameter] public HorizontalPosition? Floated { get; set; }
    /// <summary>
    /// Gets or sets the horizontal alignment of text.
    /// </summary>
    [Parameter] public HorizontalAlignment? HorizontalAlignment { get; set; }
    /// <summary>
    /// Gets or sets the vertical alignment of text.
    /// </summary>
    [Parameter] public VerticalAlignment? VerticalAlignment { get; set; }
}
